package com.cm.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cm.order.entity.Address;
import com.cm.order.entity.dto.AddressKeyWordDTO;
import com.cm.order.entity.vo.AddressVO;

/**
 * @类 名:AddressService </br>
 * @描 述:<br>
 * @日 期:2020/9/25 17:05 </br>
 * @作 者:小兰同学</br>
 * @版 本：1.0.0
 * @since JDK 1.8
 */
public interface AddressService {
    boolean insert(Address address);

    boolean delete(Long id);

    boolean update(Address address);

    IPage<AddressVO> getAddresstList(AddressKeyWordDTO addressKeyWordDTO);
    Address getByUserId(Long id);
}
